package com.java.al.set;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class NoSame {
	public static void main(String[] args) {
		String[] a = {"a","b"};
		String[] n = {"a","c"};
		Set aa = new HashSet();
		for (int i = 0; i < a.length; i++) {
			aa.add(a[i]);
		}
		Iterator it = aa.iterator();
		while(it.hasNext()){
			System.out.println("1111111111111111111111111111");
			System.out.println(it.next());
		}
		for (int i = 0; i < n.length; i++) {
			aa.add(n[i]);
		}
		Iterator it1 = aa.iterator();
		System.out.println("-------------------");
		while(it1.hasNext()){
			System.out.println(it1.next());
		}
	}
}
